/**
 * @author: Miss.杨
 * @date: 2025年3月08日 16:31:33
 * @description: 
 */
package com.sheepone.monitor.audit.core.entities;

import java.util.HashMap;


/**
 * @author: Miss.杨
 * @date: 2025年3月08日 16:31:33
 * @description: 
 */
public class AuditLogContext {
    private AuditLogMessage message;
    private HashMap<String, Object> otherInfo;
    private String queryKey;
    private String info;

    public AuditLogContext(AuditLogMessage message) {
        this.message = message;
    }

    public AuditLogMessage getMessage() {
        return message;
    }

    public void setMessage(AuditLogMessage message) {
        this.message = message;
    }

    public HashMap<String, Object> getOtherInfo() {
        return otherInfo;
    }

    public void putOtherInfo(String key, Object value) {
        if (this.otherInfo == null) {
            this.otherInfo = new HashMap<>();
        }
        this.otherInfo.put(key, value);
    }

    public void setOtherInfo(HashMap<String, Object> otherInfo) {
        this.otherInfo = otherInfo;
    }

    public String getQueryKey() {
        return queryKey;
    }

    public void setQueryKey(String queryKey) {
        this.queryKey = queryKey;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    
}
